package com.qf.mybatis.mapper;

import com.qf.mybatis.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


public interface UserMapper {
    public User selectUserById(Integer id);
    //使用原生参数绑定
    public User selectUserByIdAndPwd(@Param("id") Integer id , @Param("pwd") String pwd);

    User selectUserByIdAndPwd_map(Map values);

    User selectUserByUserInfo(User user);

    List<User> selectUserByKeyWord(@Param("keyword") String keyword);

    int delete(@Param("name") String name);

    int update(User user);

    int insert(User user);
}
